package com.privated.work.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: JohnCoding
 * @Description:
 * @date: 2019/12/19 15:10
 */
@Configuration
@MapperScan("com.private.work.dao")
public class MyBatisPlusConfig {

    /**
     * 配置MybatisPlus 物理分页插件
     * @return
     */
    @Bean
    public PaginationInterceptor paginationInterceptor(){
        PaginationInterceptor paginationInterceptor = new PaginationInterceptor();
        return paginationInterceptor;
    }

}
